package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.CarPushDataQueryDao;
import com.sq.partner.manager.mybatis.model.CarPushDataQuery;


@Repository
public class CarPushDataQueryDaoImpl extends BaseDaoImpl implements CarPushDataQueryDao {

	@Override
	public CarPushDataQuery queryCarDataInfoForDZ(String carVin)
			throws Exception {
		return (CarPushDataQuery) this.query("queryCarPushDataForDZ", carVin);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CarPushDataQuery> queryCarDataInfoForDF(String carVin)
			throws Exception {
		return this.queryList("queryCarPushDataForDF", carVin);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CarPushDataQuery> queryServiceCodeMapping(String dealerCode)
			throws Exception {
		return this.queryList("queryServiceCodeMapping", dealerCode);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CarPushDataQuery> queryServiceCodeDict(String dealerCode)
			throws Exception {
		return this.queryList("queryServiceCodeDict", dealerCode);
	}

}
